<template>
    <div class="select">
        <el-form ref="form" :model="form" label-width="80px" class="lists">
            <div class="select-lists">
                <slot name="id">
                    <el-form-item label="任务编号：" class="list">
                        <el-input v-model="form.id" placeholder="请输入"></el-input>
                    </el-form-item>
                </slot>

                
                <el-form-item label="委托方：">
                    <el-input v-model="form.name"></el-input>
                </el-form-item>
                <el-form-item label="入库类型：">
                    <el-select v-model="form.type" placeholder="请选择">
                    <el-option label="采购入库" value="buyin"></el-option>
                    <el-option label="退货入库" value="exitin"></el-option>
                    <el-option label="生产入库" value="creatin"></el-option>
                    <el-option label="其他" value="other"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="供货/退货单位：">
                    <el-input v-model="form.producer"></el-input>
                </el-form-item>
                <el-form-item label="预计到货日期：">
                    <el-input v-model="form.arrive"></el-input>
                </el-form-item>
                <el-form-item label="创建人：">
                    <el-input v-model="form.founder"></el-input>
                </el-form-item>
                <el-form-item label="创建日期：">
                    <el-col :span="11">
                        <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
                    </el-col>
                </el-form-item>
                <el-form-item label="任务状态：">
                    <el-select v-model="form.status" placeholder="请选择">
                    <el-option label="进行中" value="ing"></el-option>
                    <el-option label="已完成" value="ed"></el-option>
                    </el-select>
                </el-form-item>
            </div>
            <el-form-item>
                <el-button type="primary" @click="onSubmit">立即创建</el-button>
                <el-button>取消</el-button>
            </el-form-item>
        </el-form>
        
    </div>
</template>

<script>
export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>

<style>
.select {
    background-color: #fff;
    margin-top: 50px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    width: 1660px;
}
.el-form-item__label {
    font-size: 13px !important;
    white-space: nowrap;
}
.select-lists {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
}
.el-input__inner {
    width: 265px !important;
    box-sizing: border-box;
    height: 30px !important;
    margin-right: 20px;
}
.el-input__suffix {
    height: 100%;
    right: 30px !important;
    transition: all .3s;
    pointer-events: none;
}
.el-form-item__content {
    margin-left: 100px !important;
}
</style>